package com.bright.ghj.overt.repository.primary;

import com.bright.ghj.overt.pojo.po.primary.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Optional;

public interface UserRepository extends JpaRepository<User, Integer>, JpaSpecificationExecutor<User> {

    Optional<User> getUserByUsername(String username);

}